/**
 *    Copyright 2009-2015 the original author or authors.
 *
 *    Licensed under the Apache License, Version 2.0 (the "License");
 *    you may not use this file except in compliance with the License.
 *    You may obtain a copy of the License at
 *
 *       http://www.apache.org/licenses/LICENSE-2.0
 *
 *    Unless required by applicable law or agreed to in writing, software
 *    distributed under the License is distributed on an "AS IS" BASIS,
 *    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 *    See the License for the specific language governing permissions and
 *    limitations under the License.
 */
package org.apache.ibatis.logging;

/**日志接口
 * 定义了trace、debug、warn、error四个日志级别，这基本与主流日志框架的日志级别类似，可以满足绝大多数场景的日志需求。
 * @author Clinton Begin
 */
public interface Log {//适配器模式:目标接口，将原有的Logger或Log接口包装为新的Log接口
  //interface
  boolean isDebugEnabled();// 是否开启调试

  boolean isTraceEnabled();

  void error(String s, Throwable e);

  void error(String s);

  void debug(String s);

  void trace(String s);

  void warn(String s);

}
